/*
 * Copyright (c) 2013, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package pyip.lib.javalearn.spring.annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author gongtao
 * @date 2015年3月31日
 */
@Component("configInfo")
public class ConfigInfo {

    @Value("${app.type}")
    private String appType;

    @Value("${resource.compress}")
    private static boolean compress;

    @Value("${restrictedshipper.product}")
    private String restrictedProduct;

    @Value("${server.name}")
    private String serverName;

    @Value("${http.port}")
    private String httpPort;

    @Value("${is.append.port}")
    private boolean isAppendPort;

    @Value("${redis.default.db}")
    private int redisDefaultDB;

    @Value("${redis.init.clear.db}")
    private boolean redisInitClearDB;

    /**
     * @return the appType
     */
    public String getAppType() {
        return appType;
    }

    /**
     * @return the compress
     */
    public static boolean isCompress() {
        return compress;
    }

    /**
     * @return the restrictedProduct
     */
    public String getRestrictedProduct() {
        return restrictedProduct;
    }

    /**
     * @return the serverName
     */
    public String getServerName() {
        return serverName;
    }

    /**
     * @return the httpPort
     */
    public String getHttpPort() {
        return httpPort;
    }

    /**
     * @return the isAppendPort
     */
    public boolean isAppendPort() {
        return isAppendPort;
    }

    /**
     * @return the redisDefaultDB
     */
    public int getRedisDefaultDB() {
        return redisDefaultDB;
    }

    /**
     * @return the redisInitClearDB
     */
    public boolean isRedisInitClearDB() {
        return redisInitClearDB;
    }

}
